package com.demo.core;

import com.tiangong.framework.bo.AbstractGlobalFilter;
import com.tiangong.framework.bo.CDO;
import com.tiangong.framework.bo.Return;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * 全局过滤器2
 */
@Component
@Order(2)
@Slf4j
public class Filter2 extends AbstractGlobalFilter {
    @Override
    public Return doFilter(HttpServletRequest request, CDO cdoRequest) {
        log.info("Filter2");
        return Return.SUCCESS;
    }
}
